package com.infojarda.gbasedwiki.web.client.services;

import java.util.ArrayList;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.infojarda.gbasedwiki.web.client.dtos.WikiPageDTO;
 
@RemoteServiceRelativePath("wiki")
public interface WikiService extends RemoteService{
	Long createWikiPage(WikiPageDTO wikiPageDTO);
	
	ArrayList<WikiPageDTO> readWikiPages();
	String deleteWikiPage(Long id);
	WikiPageDTO getWikiPage(Long id);
	
	/**
	 * This is the update service interface declaration.
	 */
	String updateWikiPage(WikiPageDTO wikiPage);
	/**
	 * Returns the wiki pages where the parrentID == 0
	 * @return
	 */
	ArrayList<WikiPageDTO> getRootWikiPages();
}
